//
//  FatherViewController.h
//  CleanerAir_Project
//
//  Created by mac on 16/4/28.
//  Copyright © 2016年 Beijing Colin El Internet. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "afn_api.h"
#import "YRSideViewController.h"
#import "AppDelegate.h"

// RGB颜色转换（16进制->10进制）
#define UIColorFromRGB(rgbValue)\
\
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 \
alpha:1.0]

//请求数据公共区域
#define AFN_Address(_NSString_) [@"http://101.201.222.145:8080/zl-app" stringByAppendingString:_NSString_]

@interface FatherViewController : UIViewController

- (void)showDisconnectIndicator; // 显示没有网络的提示
- (void)hideDisconnectIndicator; // 隐藏没有网络的提示

- (void)showIndicator; //显示载入dialog，默认文字
- (void)showIndicator:(NSString*) labelText;  //显示载入dialog，自定义文字
- (void)hideIndicator; //隐藏dialog

- (void)showIndicatorWithDelay:(CGFloat)delay;

//成功，失败toast
  
//颜色
- (UIColor *) colorWithHexString: (NSString *)color;

- (void)keyboardWillHide:(NSNotification *)aNotification;
- (void)keyboardWillShow:(NSNotification *)aNotification;


@property (nonatomic, assign) CGFloat keyBoardHeight;
@property(nonatomic,strong)UILabel*titlelabel;//标题
@end
